package org.origin.ferret.system.model.dto.area;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 插入系统区域数据-实体类
 *
 * @author ferret
 * @version 2024-05-08
 */
@Data
@Schema(description = "插入系统区域数据-实体类")
public class SysAreaInsertDto {

    @NotNull(message = "上级不能为空")
    @Schema(description = "上级", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long parentId;

    @Schema(description = "代码")
    private String code;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "级别")
    private Integer level;

    @Schema(description = "经纬")
    private String seat;

    @Schema(description = "邮编")
    private String zip;

    @Schema(description = "顺序")
    private Integer sort;


}
